package com.pranavnegandhi;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class Game extends Activity
{
	public static final String KEY_DIFFICULTY = "com.pranavnegandhi.sudoku.Game.difficulty";
	
	private static final String TAG = "com.pranavnegandhi.Game";
	
	private static final int DIFFICULTY_EASY = 0;
	
	private static final int DIFFICULT_MEDIUM = 1;
	
	private static final int DIFFICULTY_HARD = 2;
	
	private PuzzleView puzzleView;
	
	private int difficulty;
	
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		difficulty = getIntent().getIntExtra(Game.KEY_DIFFICULTY, Game.DIFFICULTY_EASY);
		Log.i(Game.TAG, "Difficulty level " + difficulty);
		
		puzzleView = new PuzzleView(this);
		setContentView(puzzleView);
		puzzleView.requestFocus();
	}
	
	public int getDifficulty()
	{
		return difficulty;
	}
}
